<!doctype html>
<title>document.open during parsing</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
test(function() {
 var log = document.getElementById("log");
 document.open()
 assert_equals(document.getElementById("log"), log)
})
</script>
